import index from './indexController';

const controllerInit = {
	init(app, router) {
		app.use(router(_ => {
			_.get('/', (ctx) => {
				ctx.body = 'Hello Koa';
			});
			_.get('/index/index', index.index());
      _.get('/index/thumb', index.thumb());
      _.get('/index/star', index.star());
			_.get('/index/update/:creator', index.update());
		}));
	}
}

export default controllerInit;